package com.easy_buy.domain;

import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Id;

@Entity
@Data
public class Supplier implements Role {
    @Id
    private String scode;
    private String spassword;
    private String sname;

    @Override
    public String getRole() {
        return "商家";
    }

    @Override
    public String getCode() {
        return this.scode;
    }

    @Override
    public String getPassword() {
        return this.spassword;
    }

    @Override
    public String getName() {
        return this.sname;
    }
}
